package com.zh;
import javax.swing.text.Style;

import static com.zh.Ui.*;
public class Main {

    public static void main(String[] args) {
	// write your code here
        StudentSet studentSet=new StudentSet();
        ImportData importData= new ImportData();
        studentSet=importData.importDataFromTxtFile("F:\\java\\stu\\src\\com\\zh\\data.txt");
        while (true){
            menuMain();
            switch (getUserOrder()){
                case 1:
                    browseStudentSet(studentSet.getStudents());
                    break;
                case 2:
                    menuJs();
                    switch (getUserOrder()){
                        case 1:
                            break;
                        case 2:
                            js(studentSet.getStudents());
                            break;
                        default:
                            System.out.println("input error! please input again");
                    }

                    break;
                case 3:
                    System.exit(0);
                    break;
                default:
                    System.out.println("input error! please chioce");
            }
        }
    }
}
